<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css3属性选择器.html</title>
    <style>
        input[value] {
            color: skyblue;
        }
        input[type='text'] {
            font-style: italic;
        }
        input[name^='p'] {
            font-weight: 100;
        }
        input[name$='p'] {
            font-weight: 900;
            font-style: normal;
        }
        input[name*='oo'] {
            font-size: 22px;
        }
    </style>
</head>
<body>
    <input type="text" name="poo" id="" placeholder="哈哈哈">
    <input type="text" name="oop" id="" value="你好">
</body>
</html>